public class Test {
    public static void main(String[] args) {
        //做测试
        Doctor doctor1 = new Doctor("smith",35,"护士","女",5000);
        Doctor doctor2 = new Doctor("jack",35,"医生","男",10000);
        System.out.println(doctor1 == doctor2);
        System.out.println(doctor1.equals(doctor2));
    }
}
